package com.atguigu.spring.bean.bean;

/**
 * @author wk
 * @create 2021-06-01 9:48
 */
public class Student {
    private Integer sid;
    private String Sname;
    private Integer age;
    private String sex;
    private Clazz clazz;

    public Student() {
    }

    public Student(Integer sid, String sname, Integer age, String sex, Clazz clazz) {
        this.sid = sid;
        Sname = sname;
        this.age = age;
        this.sex = sex;
        this.clazz = clazz;
    }
    public Student(Integer sid, String sname, Integer age, String sex) {
        this.sid = sid;
        Sname = sname;
        this.age = age;
        this.sex = sex;
        this.clazz = clazz;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", Sname='" + Sname + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", clazz=" + clazz +
                '}';
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return Sname;
    }

    public void setSname(String sname) {
        Sname = sname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Clazz getClazz() {
        return clazz;
    }

    public void setClazz(Clazz clazz) {
        this.clazz = clazz;
    }
}
